package cn.sh.yhk;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.stereotype.Component;

/**
 * @Auther: adminyhk
 * @Date: 2018/11/22 13:14
 * @Description:
 */
@Component
public class ExitApplication implements DisposableBean, ExitCodeGenerator {

    @Override
    public void destroy() {
        System.out.println("删除缓存文件");
    }

    @Override
    public int getExitCode() {
        return 5;
    }
}
